package lyx.tank
{
	import lyx.game.GameEngine;
	import lyx.game.GameFramework;
	import lyx.game.view.WorldView;
	import lyx.tank.engine.TankGameEngine;
	import lyx.tank.view.GameWorldView;

	[SWF(width=640,height=480)]
	public class Main extends GameFramework
	{
		/**
		 * 程序入口函数
		 */
		public function Main()
		{
			
		}
		
		override protected function initializeView(view:WorldView=null):void
		{
			var view:WorldView = new GameWorldView();
			super.initializeView(view);
		}
		
		/**
		 * 初始化游戏引擎
		 */
		override protected function initializeEngine(engine:GameEngine=null):void
		{
			var tank_game_engine:TankGameEngine = new TankGameEngine();
			super.initializeEngine(tank_game_engine);
		}
	}
}
